<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>处理错误</title>
<style type="text/css">
h2{ color: red;}
</style>
</head>
<body>
<%
String cw=exception.getMessage();
out.println("<h1>报错原因是：</h1>");
out.print("<h2>"+cw+"</h2>");
%>
</body>
</html>